﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.Windows;


namespace GG.Base
{
    public class PositionAble : IGridDrawable
    {
        protected TransformGroup group;
        protected DrawingGroup drawing;
        public DrawingGroup Drawing { get { return drawing; } }

        private Point position;
        public Point Position {
            set
            {
                position = value;
                group.Children[0] = new TranslateTransform(value.X, value.Y);
            System.Diagnostics.Debug.WriteLine("New Position: " + value);
            }
            get
            {
                return position; 
            } }

        private double rotation;
        public double Rotation { set { group.Children[1] = new RotateTransform(value); rotation = value; } get { return rotation; } }
        
    }
}
